<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('修改宰杀')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-ncZaisha-edit" th:object="${ncZaisha}">
            <input id="zaishaId" name="zaishaId" th:field="*{zaishaId}"  type="hidden">
			<div class="form-group">	
				<label class="col-sm-3 control-label">宰杀时间
：</label>
				<div class="col-sm-8">
					<input type="text" style="height: 34px;"  th:value="*{#dates.format(zaishaTime, 'yyyy-MM-dd HH:mm:ss')}" name="zaishaTime" class="time-input" id="zaishaTime" data-type="datetime"/>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">宰杀数量：</label>
				<div class="col-sm-8">
					<input id="zaishaCount" name="zaishaCount" th:field="*{zaishaCount}" class="form-control" type="number" onkeyup=" value=value.replace(/^(0+)|[^\d]+/g,'')" min="0" required>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">宰杀前体况：</label>
				<div class="col-sm-8">
					<select name="zaishaQianTraining" required class="form-control m-b"
							th:with="type=${@dict.getType('zaisha_qian_training')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{zaishaQianTraining}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">宰杀后体况
：</label>
				<div class="col-sm-8">
					<select name="zaishaHouTraining" required class="form-control m-b"
							th:with="type=${@dict.getType('zaisha_hou_training')}">
						<option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{zaishaHouTraining}"></option>
					</select>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">宰杀操作人：</label>
				<div class="col-sm-8">
					<input id="zaishaOperation" name="zaishaOperation" th:field="*{zaishaOperation}" class="form-control" type="text">
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">备注：</label>
				<div class="col-sm-8">
					<textarea id="remark" name="remark"  class="form-control valid" type="text" rows="4" th:field="*{remark}"></textarea>
				</div>
			</div>
		</form>
    </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "system/ncZaisha";
		$("#form-ncZaisha-edit").validate({
			rules:{
				xxxx:{
					required:true,
				},
			},
			focusCleanup: true
		});
		
		function submitHandler() {
	        if ($.validate.form()) {
	            $.operate.save(prefix + "/edit", $('#form-ncZaisha-edit').serialize());
	        }
	    }
	</script>
</body>
</html>
